package contracts.simpleCodingQuiz

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method("PUT")
        url(value(producer("/api/simpleCodingQuizzes/1/templateRepository")
                , consumer(regex("/api/simpleCodingQuizzes/\\d+/templateRepository")))) {
            queryParameters {
                parameter("templateRepository", "templateRepository")
            }
        }
    }
    response {
        status(204)
    }
}
